//
//  CASaveBankApi.m
//  LNH
//
//  Created by twentylx on 2018/2/8.
//  Copyright © 2018年 twentylx. All rights reserved.
//

#import "CASaveBankApi.h"

@implementation CASaveBankApi {
    NSString *_bankId;
    NSString *_cardNo;
    NSString *_name;
    NSString *_cardOpened;
}

- (instancetype) initWithBankId:(NSString *) bankId CardNo:(NSString *) cardNo Name:(NSString *) name CardOpened:(NSString *)cardOpened {
    self = [super init];
    if (self) {
        _bankId = bankId;
        _cardNo = cardNo;
        _name = name;
        _cardOpened = cardOpened;
    }
    return self;
}

-(YTKRequestMethod)requestMethod{
    return YTKRequestMethodPOST;
}

-(id)requestArgument{
    return @{
             @"token":GVUD.token,
             @"bank_group_id":_bankId,
             @"card_number":_cardNo,
             @"name":_name,
             };
}

-(NSString *)requestUrl{
    NSLog(@"%@", [NSString stringWithFormat:@"%@UserBank/add",BASE_SERVICE_DOMAIN]);
    return [NSString stringWithFormat:@"%@UserBank/add",BASE_SERVICE_DOMAIN];
    
    
}

@end
